package com.java202411.repository.client;


import com.java202411.repository.table.UserTable;
import org.springframework.data.repository.CrudRepository;
import org.springframework.data.repository.query.Param;
import org.springframework.stereotype.Repository;

import java.util.Optional;

@Repository
public interface UserDatabaseClient extends CrudRepository<UserTable, Long> {
    Optional<UserTable> findByEmail(@Param("email") String email);
}
